home *** CD-ROM | disk | FTP | other *** search
/ Champak 52 / Volume 52 - JOGO DISK .iso / Games / puppyred_ball_war.swf / scripts / frame_14 / PlaceObject2_287_218 / CLIPACTIONRECORD onClipEvent(load).as < prev   
Text File  |  2007-09-26  |  881b  |  30 lines

  1. onClipEvent(load){
  2.    function scoreView()
  3.    {
  4.       trace("score");
  5.       var s10 = Math.floor(_root.score / 1000000000);
  6.       var s9 = Math.floor(_root.score % 1000000000 / 100000000);
  7.       var s8 = Math.floor(_root.score % 100000000 / 10000000);
  8.       var s7 = Math.floor(_root.score % 10000000 / 1000000);
  9.       var s6 = Math.floor(_root.score % 1000000 / 100000);
  10.       var s5 = Math.floor(_root.score % 100000 / 10000);
  11.       var s4 = Math.floor(_root.score % 10000 / 1000);
  12.       var s3 = Math.floor(_root.score % 1000 / 100);
  13.       var s2 = Math.floor(_root.score % 100 / 10);
  14.       var s1 = Math.floor(_root.score % 10);
  15.       i = 1;
  16.       while(i <= 10)
  17.       {
  18.          this["n" + i].gotoAndStop(eval("s" + i) + 1);
  19.          i++;
  20.       }
  21.    }
  22.    i = 1;
  23.    while(i <= 10)
  24.    {
  25.       this["n" + i].stop();
  26.       i++;
  27.    }
  28.    scoreView();
  29. }
  30.